package com.scau.hwadee.examination.service;

import com.github.pagehelper.PageInfo;
import com.scau.hwadee.examination.entity.Course;
import com.scau.hwadee.examination.entity.Examfee;
import com.scau.hwadee.examination.entity.Examsession;

import java.util.List;

/**
 * @author YHX
 * @date 2019/7/31 18:34
 * description
 */
public interface ExamService {
    /**
     * @author YHX
     * @description 获取所有的考次信息
     * @date 16:13 2019/8/4
     * @Param [pageNum, pageSize]
     * @return com.github.pagehelper.PageInfo<com.scau.hwadee.examination.entity.Examsession>
     **/
    PageInfo<Examsession> getAllExamSessions(int pageNum, int pageSize);
    
    /**
     * @author YHX
     * @description 获取当前考次的所有课程
     * @date 16:14 2019/8/4
     * @Param [pageNum, pageSize, examSessionId]
     * @return com.github.pagehelper.PageInfo<com.scau.hwadee.examination.entity.Course>
     **/
    PageInfo<Course> getAllCourseFromExamSessionId(int pageNum, int pageSize, String examSessionId);
    
    /**
     * @author YHX
     * @description 设置开考费用
     * @date 16:14 2019/8/4
     * @Param [examfees]
     * @return int
     **/
    int insertExamFeeList(List<Examfee> examfees);
    
    /**
     * @author YHX
     * @description 更新开考费用
     * @date 16:14 2019/8/4
     * @Param [examfee]
     * @return int
     **/
    int updateExamFee(Examfee examfee);
}
